package com.tubemostwanted.controller;

import java.io.IOException;
import javax.servlet.ServletException;
import javax.servlet.http.*;

import com.tubemostwanted.model.CategoryModel;

@SuppressWarnings("serial")
public class TestController extends HttpServlet {

	protected void doGet(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		System.out.println(CategoryModel.getMaxIndex());
	}

	protected void doPost(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		response.setContentType("text/html;charset=UTF-8");
		System.out.println("Called me. Do post");
		System.out.println(request.getParameter("tubeId"));
		System.out.println(request.getParameter("prevId"));
		System.out.println(request.getParameter("nextId"));

	}
}
